<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="common/head :: htmlhead">

<body>
<link rel="stylesheet" type="text/css" th:href="@{/static/css/bootstrap.min.css}">
<link rel="stylesheet" type="text/css" th:href="@{/static/css/theme.css}">
<div class="navbar navbar-default" role="navigation">
    <div class="navbar-header" style="text-align: center">
        <a href="#"><span class="navbar-brand">全国工业博物馆联盟-会员注册</span></a>

    </div>
</div>

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header" style="font-size:large">用户注册</div>
        <div class="layui-card-body">
            <form class="layui-form" lay-filter="component-form-group">
                <div class="layui-form-item ">
                    <label class="layui-form-label" style="width: 100px">注册类型</label>
                    <div class="layui-input-block">
                        <select name="memtype" id="memtype" lay-filter="aihao">
                            <option value="bwg" selected>博物馆会员</option>
                            <option value="per">个人会员</option>
                            <option value="oth">其他单位会员</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="button" class="layui-btn" onclick="location.href='/login'">返回登录</button>
                        <button type="button" class="layui-btn layui-btn-primary" onclick="register()">下一步
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.config({
        base: '/static/lib/' //静态资源所在路径
    }).extend({
        index: 'index' //主入口模块
    }).use(['index', 'form', 'laydate'], function(){
        var $ = layui.$
            ,admin = layui.admin
            ,element = layui.element
            ,layer = layui.layer
            ,laydate = layui.laydate
            ,form = layui.form;

        form.render(null, 'component-form-group');
    });



   function register(){
       var memtype = $('#memtype').val();
       location.href="/register/"+memtype;
   }
</script>
</body>
</html>


